package servidor;

import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.RemoteException;

import rmi.GestionJugadores;
import rmi.IGestionJugadores;

public class Servidor {
	
	public Servidor(){
		IGestionJugadores interfaz;
		try {
			interfaz = new GestionJugadores();
			Naming.rebind("GestionJugadores", interfaz);
		} catch (RemoteException e) {
			e.printStackTrace();
		} catch (MalformedURLException e) {
			e.printStackTrace();
		}
	}
	
	public static void main(String[] args){
		new Servidor();
	}
}
